// pages/timetable/timetable.js
Page({
    data: {
        week11:'',
        week12:'',
        week13:'',
        week14:'',
        week15:'',
        week16:'',
        week17:'',
        week21:'',
        week22:'',
        week23:'',
        week24:'',
        week25:'',
        week26:'',
        week27:'',
        week31:'',
        week32:'',
        week33:'',
        week34:'',
        week35:'',
        week36:'',
        week37:'',
        week41:'',
        week42:'',
        week43:'',
        week44:'',
        week45:'',
        week46:'',
        week47:'',
        week51:'',
        week52:'',
        week53:'',
        week54:'',
        week55:'',
        week56:'',
        week57:'',
        week61:'',
        week62:'',
        week63:'',
        week64:'',
        week65:'',
        week66:'',
        week67:'',
    },
     onLoad: function (options) {
      var that = this;
      wx.request({
        url: 'http://localhost/busCoursePlanInfo/api/listTimeTable',
        success:function(res){
          console.log(res.data)
          that.setData({
            week11:res.data.week11,
            week12:res.data.week12,
            week13:res.data.week13,
            week14:res.data.week14,
            week15:res.data.week15,
            week16:res.data.week16,
            week17:res.data.week17,
            week21:res.data.week21,
            week22:res.data.week22,
            week23:res.data.week23,
            week24:res.data.week24,
            week25:res.data.week25,
            week26:res.data.week26,
            week27:res.data.week27,
            week31:res.data.week31,
            week32:res.data.week32,
            week33:res.data.week33,
            week34:res.data.week34,
            week35:res.data.week35,
            week36:res.data.week36,
            week37:res.data.week37,
            week41:res.data.week41,
            week42:res.data.week42,
            week43:res.data.week43,
            week44:res.data.week44,
            week45:res.data.week45,
            week46:res.data.week46,
            week47:res.data.week47,
            week51:res.data.week51,
            week52:res.data.week52,
            week53:res.data.week53,
            week54:res.data.week54,
            week55:res.data.week55,
            week56:res.data.week56,
            week57:res.data.week57,
            week61:res.data.week61,
            week62:res.data.week62,
            week63:res.data.week63,
            week64:res.data.week64,
            week65:res.data.week65,
            week66:res.data.week66,
            week67:res.data.week67          
          })
        }
      })

     } ,
  
  /**
   * 页面的初始数据
   */

  /**
   * 生命周期函数--监听页面加载
   */

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})
